package com.fr.data.impl;

import com.fr.base.core.ComparatorUtils;
import com.fr.data.AbstractTableData;
import javax.swing.table.TableModel;

public class TableModelTableData extends AbstractTableData
{
  private TableModel tableModel;

  public TableModelTableData(TableModel paramTableModel)
  {
    this.tableModel = paramTableModel;
  }

  public int getColumnCount()
  {
    return this.tableModel.getColumnCount();
  }

  public String getColumnName(int paramInt)
  {
    return this.tableModel.getColumnName(paramInt);
  }

  public int getRowCount()
  {
    return this.tableModel.getRowCount();
  }

  public Object getValueAt(int paramInt1, int paramInt2)
  {
    return this.tableModel.getValueAt(paramInt1, paramInt2);
  }

  public boolean equals(Object paramObject)
  {
    return ((paramObject instanceof TableModelTableData) && (super.equals(paramObject)) && (ComparatorUtils.equals(this.tableModel, ((TableModelTableData)paramObject).tableModel)));
  }
}